package aiku.numericalcontroloa.Mapper.CompanyCulture;

import aiku.numericalcontroloa.Model.Dto.CompanyCulture.LearnRecordDto;
import aiku.numericalcontroloa.Model.Entity.LearnRecordGroup;
import aiku.numericalcontroloa.Model.Entity.CompanyCulture.LearnRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/1/25 11:02
 */
@Repository
public interface LearnRecordMapper extends BaseMapper<LearnRecord> {
    int insertBatch(@Param("learnRecordList") List<LearnRecord> learnRecordList);

    List<LearnRecordDto> fuzzySelectPage(@Param("learnRecordDto") LearnRecordDto learnRecordDto);

    int countLearnRecordList(@Param("learnRecordDto") LearnRecordDto learnRecordDto);

    List<LearnRecordGroup> countUserGroupList(@Param("materialId") String materialId);
}
